using StackCalc.Instructions;

namespace StackCalc.Parsing.ParsingUnits
{
	public class ApplyParser : BaseParsingUnit<Apply>
	{
		protected override bool CanParseImplementation(string input)
		{
			return input[0] == '@';
		}

		protected override Apply ParseImplementation(string input)
		{
			return new Apply();
		}

		protected override string TrunkateImplementation(string input)
		{
			return input.Remove(0, 1);
		}
	}
}
